#ifndef MOONLIGHT_OHOS_LIMELIGHTUTILS_H
#define MOONLIGHT_OHOS_LIMELIGHTUTILS_H

#include <Limelight.h>

#undef LOG_DOMAIN
#undef LOG_TAG
#define LOG_DOMAIN  0x0
#define LOG_TAG     "LimelightUtils"
#include <hilog/log.h>


#define LI_CALL_OR_ELSE(expr, otherwise) \
    if (int liCallResult = Li##expr ; liCallResult) { \
        OH_LOG_ERROR(LOG_APP, "Limelight call %{public}s failed with %{public}d", #expr, liCallResult); \
        otherwise; \
    }

#endif //MOONLIGHT_OHOS_LIMELIGHTUTILS_H
